package com.wannengbang.storemobile.homepage;


import android.content.Intent;
import android.os.Bundle;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.wannengbang.storemobile.R;
import com.wannengbang.storemobile.base.BaseActivity;
import com.wannengbang.storemobile.widget.AppTitleBar;

import butterknife.BindView;
import butterknife.ButterKnife;

public class IncomingVersionActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    AppTitleBar titleBar;
    @BindView(R.id.ll_store_1)
    RelativeLayout ll_store_1;
    @BindView(R.id.ll_store_2)
    RelativeLayout ll_store_2;
    private int agent_id;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_incoming_version);
        ButterKnife.bind(this);

        initView();
        initEvent();
    }
    protected void initView() {
        Intent intent = getIntent();
        agent_id = intent.getIntExtra("agent_id",0);
    }
    protected void initEvent() {
//        channel_type  1 银盛标准版 2银盛智能版
        ll_store_1.setOnClickListener(v -> {
            Intent intent = new Intent(this, IncomingUserTypeActivity.class);
            intent.putExtra("channel_type","1");
            intent.putExtra("agent_id",agent_id);
            startActivity(intent);
            finish();

        });
        ll_store_2.setOnClickListener(v -> {
            Intent intent = new Intent(this, IncomingUserTypeActivity.class);
            intent.putExtra("channel_type","2");
            intent.putExtra("agent_id",agent_id);
            startActivity(intent);
            finish();
        });
    }
}